package io.geekidea.boot.chargeback.query;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.geekidea.boot.framework.page.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Schema(description = "退单管理参数")
public class ChargeBackQuery extends BasePageQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "退单号")
    @TableField("numbers")
    private String numbers;

    @Schema(description = "订单号")
    @TableField("orderId")
    private String orderId;

    @Schema(description = "订单类型")
    @TableField("order_types")
    private String orderTypes;


    @Schema(description = "订单子类型")
    @TableField("order_subtype")
    private String orderSubtype;

    @Schema(description = "战区id")
    @TableField("areaId")
    private Integer areaId;

    @Schema(description = "门店id")
    @TableField("storeId")
    private Integer storeId;

    @Schema(description = "退款状态")
    @TableField("refund_status")
    private Boolean refundStatus;

    @Schema(description = "审核状态")
    @TableField("audit_status")
    private Boolean auditStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private String startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private String lastTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private String startTimes;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private String lastTimes;


}
